-- GENERATED SPELL FOR [Shadowfang Moonwalker] --


function spell0_3853(pUnit, Event) --@Anti-Magic Shield,n/a--
pUnit:FullCastSpellOnTarget(7121,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3853', 12000, 1)
end

function Sorts_3853(pUnit, Event)
local choix_sorts_3853 = math.random(0, 0)
if choix_sorts_3853 == 0 then
pUnit:RegisterEvent('spell0_3853', 1, 1)
end
end

function mob3853_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3853', math.random(1500, 3000), 1)
end

function mob3853_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3853_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3853_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3853, 1, 'mob3853_Action')
RegisterUnitEvent(3853, 2, 'mob3853_Leave')
RegisterUnitEvent(3853, 3, 'mob3853_Kill')
RegisterUnitEvent(3853, 4, 'mob3853_Die')
